package com.x.client.bean

import com.chad.library.adapter.base.entity.SectionEntity

/**
 * Creator : GG
 * Date    : 2018/1/8
 * Mail    : gg.jin.yu@gmai.com
 * Explain :
 */
class WorkBenchSection : SectionEntity<Resource> {

    constructor(isHeader: Boolean, header: String?) : super(isHeader, header)
    constructor(t: Resource?) : super(t)

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as WorkBenchSection

        if (header != other.header) return false

        return true
    }

    override fun hashCode(): Int {
        return header?.hashCode() ?: 0
    }
}